import {
  // 基础组件
  Cell,
  CellGroup,
  Icon,
  Image as VanImage,
  Popup,
  ConfigProvider,
  Toast,
  // 表单组件
  Slider,
  Search,
  // 反馈组件
  ActionSheet,
  Loading,
  // 展示组件
  List,
  Swipe,
  SwipeItem,
  Tag,
  // 导航组件
  Grid,
  GridItem,
  Tab,
  Tabs,
  NavBar,
  Tabbar,
  TabbarItem,
  Lazyload
} from 'vant';

import { App } from 'vue';

export function useVantUI(app: App) {
  app.use(Cell);
  app.use(CellGroup);
  app.use(Icon);
  app.use(VanImage);
  app.use(Popup);
  app.use(ConfigProvider);
  app.use(Toast);
  app.use(Slider);
  app.use(Search);
  app.use(ActionSheet);
  app.use(Loading);
  app.use(List);
  app.use(Swipe);
  app.use(SwipeItem);
  app.use(Tag);
  app.use(Grid);
  app.use(GridItem);
  app.use(Tab);
  app.use(Tabs);
  app.use(NavBar);
  app.use(Tabbar);
  app.use(TabbarItem);
  app.use(Lazyload);
}
